<?php
if(!isset($title)) {
	if(isset($categories))
	foreach ($categories as $cat) {
		if(isset($category) && $cat->id == $category)
			$title = $cat->name;
	}
	if(isset($adeal->title)) $title = $adeal->title;
	if(isset($banners)) $title = "Наши партнеры";
}

if(isset($session_name)) {
	if(!$session_name) {
		$session_active = 0;
	} else {
		$session_active = 1;
	}
} else {

}
 ?>